home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 1998 #6 / 1998 CD 6 (Gul).iso / 01.dir / 00249.ls < prev    next >
Encoding:
Text File  |  1996-02-08  |  1.5 KB  |  69 lines

  1. global fSep
  2.  
  3. on startMovie
  4.   global voicePath, soundTrackPath, currentVoice, currentsoundTrack, vWindow, vSlider1, vSlider2, sliderTop, sliderBottom, volumeHPositions, ambientLevel, voiceLevel, gWaitForUser
  5.   set the timeoutScript to "Nothing"
  6.   puppetSprite(45, 0)
  7.   set gWaitForUser to 0
  8.   set ambientLevel to 150
  9.   set voiceLevel to 255
  10.   set currentsoundTrack to "12TURT.AIF"
  11.   set vWindow to 46
  12.   set vSlider1 to 47
  13.   set vSlider2 to 48
  14.   soundSetup()
  15.   puppetVolumeControls()
  16. end
  17.  
  18. on init02
  19.   global gLastRolledOn
  20.   set gLastRolledOn to 0
  21.   setPuppets(3, 9, 1)
  22. end
  23.  
  24. on puppetVolumeControls
  25.   global vWindow, vSlider1, vSlider2
  26.   puppetSprite(vWindow, 1)
  27.   puppetSprite(vSlider1, 1)
  28.   puppetSprite(vSlider2, 1)
  29. end
  30.  
  31. on checkRoll START, end
  32.   repeat with i = START to end
  33.     if rollOver(i) then
  34.       hiliteSprite(i)
  35.     end if
  36.   end repeat
  37. end
  38.  
  39. on hiliteSprite whichSprite
  40.   set the castNum of sprite whichSprite to the castNum of sprite whichSprite + 1
  41.   set didItClick to 0
  42.   updateStage()
  43.   repeat while rollOver(whichSprite)
  44.     go(the frame)
  45.     if the mouseDown then
  46.       set didItClick to 1
  47.       exit repeat
  48.     end if
  49.   end repeat
  50.   if didItClick = 1 then
  51.     departRoutine(whichSprite - 2)
  52.   else
  53.     set the castNum of sprite whichSprite to the castNum of sprite whichSprite - 1
  54.   end if
  55.   updateStage()
  56. end
  57.  
  58. on setPuppets channelStart, channelEnd, TRUEorFALSE
  59.   repeat with i = channelStart to channelEnd
  60.     puppetSprite(i, TRUEorFALSE)
  61.   end repeat
  62. end
  63.  
  64. on departRoutine whereTo
  65.   setPuppets(3, 9, 0)
  66.   set x to line whereTo of field "departList"
  67.   go(x)
  68. end
  69.